all:tcpclient tcpserver server

tcpclient:tcp_client.cpp
	g++ -o $@ $^ -std=c++11

tcpserver:tcp_server.cpp
	g++ -o $@ $^ -std=c++11 -pthread

server:server.cpp
	g++ -o $@ $^ -std=c++11 -pthread


.PHONY:clean
clean:
	rm -f tcpclient tcpserver server